<?php session_start(); ob_start();
	require_once('connect.php');
	require_once('calendar/classes/tc_calendar.php');

	$id_hotel=$_SESSION['id_hotel'];
	


// is the one accessing this page logged in or not?

if ( isset($_SESSION['logged-in']) || $_SESSION['logged-in'] == true) {

// not logged in, move to login page

header('Location: commit_trans.php');

exit;

} else { ?>

<!DOCTYPE html>
<html lang="en">

<head>
<link rel="shortcut icon" href="images/favicon.php" />
<meta charset="UTF-8" />
<meta name="robots" content="index, follow" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<title>Indonesian Hotel</title>
<!-- ////////////////////////////////// -->
<!-- //      Start Stylesheets       // -->
<!-- ////////////////////////////////// -->
<link href="styles/style.css" rel="stylesheet" type="text/css" />
<link href="styles/color.css" rel="stylesheet" type="text/css" />
<link href="styles/inner.css" rel="stylesheet" type="text/css" />
<link href="calendar/calendar.css" rel="stylesheet" type="text/css" />


<!-- ////////////////////////////////// -->
<!-- //      Javascript Files        // -->
<!-- ////////////////////////////////// -->
<script type="text/javascript" src="js/jquery-1.6.4.min.js"></script>
<script type="text/javascript" src="js/hoverIntent.js"></script> 
<script type="text/javascript" src="js/superfish.js"></script> 
<script type="text/javascript" src="js/supersubs.js"></script>
<script language="javascript" src="calendar/calendar.js"></script>


<script type="text/javascript">
jQuery(document).ready(function(){

	//Menu
	jQuery("ul.sf-menu").supersubs({ 
	minWidth		: 12,		// requires em unit.
	maxWidth		: 14,		// requires em unit.
	extraWidth		: 3	// extra width can ensure lines don't sometimes turn over due to slight browser differences in how they round-off values
						   // due to slight rounding differences and font-family 
	}).superfish();  // call supersubs first, then superfish, so that subs are 
					 // not display:none when measuring. Call before initialising 
					 // containing tabs for same reason. 
					 
});
</script>
</head>
<body>

<div id="outer-container">
		
        <div id="wrapper-header">
        <div class="container">
            <div id="header">
                <div id="logo">
                	<span class="logo-l"></span>
                    <a href="index.php"><img src="images/logo.png" alt=""  /></a>
                    <span class="logo-r"></span>
                </div><!-- end logo -->
                <div class="clear"></div>
                
                <div id="nav-container">
                <div id="nav-main">
                    <div id="nav">
                        <ul id="topnav" class="sf-menu">
                                                        <li><a href="index.php">Home</a></li>
                            <li><a href="#" >Rooms</a>
                                <ul>
                                    <li><a href="room.php?id=1">Indonesian Hotels 1</a></li>
                                    <li><a href="room.php?id=2">Indonesian Hotels 2</a></li>
                                    <li><a href="room.php?id=3">Indonesian Hotels 3</a></li>
                                    <li><a href="room.php?id=4">Indonesian Hotels 4</a></li>
                                    <li><a href="room.php?id=5">Indonesian Hotels 5</a></li>
                                    <li><a href="room.php?id=6">Indonesian Hotels 6</a></li>
                                    <li><a href="room.php?id=7">Indonesian Hotels 7</a></li>
                                    
                                </ul>
                            </li>
                            <li><a href="reservation.php"  class="current">Reservations</a>
                                <ul>
                                    <li><a href="reservation.php?id=1">Indonesian Hotels 1</a></li>
                                    <li><a href="reservation.php?id=2">Indonesian Hotels 2</a></li>
                                    <li><a href="reservation.php?id=3">Indonesian Hotels 3</a></li>
                                    <li><a href="reservation.php?id=4">Indonesian Hotels 4</a></li>
                                    <li><a href="reservation.php?id=5">Indonesian Hotels 5</a></li>
                                    <li><a href="reservation.php?id=6">Indonesian Hotels 6</a></li>
                                    <li><a href="reservation.php?id=7">Indonesian Hotels 7</a></li>
                                </ul>
							</li>
                            <li><a href="facilities.php">Facilities</a></li>
                            <li><a href="gallery.php">Gallery</a></li>                 
                            <li><a href="about.php">About</a></li>                 
							<li><a href="contact.php">Contact</a></li>
                        </ul><!-- end topnav -->
                    </div><!-- end nav -->	
                </div><!-- end nav-main -->
                </div><!-- end nav-container -->
            </div><!-- end header -->

        </div><!-- end container -->
		</div><!-- end wrapper-header -->  
        
        <div id="wrapper-content">
        <div class="container">
			<div id="content">
        	<div id="main">
            	<div id="maincontent" class="positionleft">
                    <h1><?php echo "Indonesian Hotel ".$id_hotel;?></h1>
                    <div class="tabcontainer">
                        <div id="tab-body">
                        <div id="tab0" class="tab-content">
							<div id="contactform">
								<h2>Contact Form</h2>
								<br>
								  <form id="contact" action="act_login.php" method="post">
									<fieldset>
										<label for="username" id="username">Username<span class="red"></span></label>
										<input type="text" name="username" id="username" size="50" class="text-input" />
										<label for="password" id="password">Password<span class="red"></span></label>
										<input type="password" name="password" id="password" size="50" class="text-input" />
										<input type="submit" name="submit" class="button" id="submit_btn" value="Login"/><br />
									</fieldset>
								  </form>
							</div><!-- end #contactform -->	
							</div>
                        </div>
                    </div>
          	<div class="separator line"></div>
                    
                <div class="clear"></div><!-- clear float --> 
                </div><!-- end maincontent -->
                
				<div id="sidebar">
                    <ul>
						<li class="widget-container">
                            <form action="#" id="searchform" method="get">
                                <div class="bgsearch">
                                    <input type="text" onBlur="if (this.value == '')this.value = 'To search type and hit enter';" onFocus="if (this.value == 'To search type and hit enter')this.value = '';" value="To search type and hit enter" id="s" name="s">
                                </div>
                            </form>
                        </li>
						<li class="widget-container">
                            <h2 class="widget-title">Categories</h2>
                            <ul>
                                <li><a href="#">Photogprahy</a></li>
                                <li><a href="#">Website Design</a></li>
                                <li><a href="#">Wordpress</a></li>
                                <li><a href="#">Site Templates</a></li>
                                <li><a href="#">Joomla</a></li>
                            </ul>
                        </li>
						<li class="widget-container">
                            <h2 class="widget-title">Text Widget</h2>
							<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque habitant morbi tristique </p>
                        </li>

                    </ul>
                    <div class="clear"></div><!-- clear float --> 
				</div><!-- end sidebar -->
				<div class="clear"></div><!-- clear float --> 
            </div><!-- end main -->
		</div><!-- end content -->
        </div><!-- end container -->
		</div><!-- end wrapper-content -->
        
<?php
include_once "footer.php";
}
?>